package com.study.junit;

import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.*;

public class JunitUse {
    @BeforeAll

    public static void  before(){
        System.out.println("beforeAll");
    }

    @BeforeEach
    public void before2(){
        System.out.println("BeforeEach");
    }

    @Test
    public void test(){
        System.out.println("test");
        test2();
        Assertions.assertThat(3).isGreaterThan(2);
//        Assertions.assertThat(3).isGreaterThan(4);
    }


    public void test2(){
        System.out.println("test2");
    }

    @Test
    public void test3(){
        System.out.println("test3");
    }

    @AfterAll
    public static void after(){
        System.out.println("afterAll");
    }

    @AfterEach
    public void after2(){
        System.out.println("AfterEach");
    }

}
